<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div class="row">
	<div class="col-12">
		<nav class="navbar navbar-expand-xl navbar-light bg-light">
			<a class="navbar-brand" href="#">
				<i class="fas fa-3x fa-tachometer-alt tm-site-icon"></i>
				<h1 class="tm-site-title mb-0">首页</h1>
			</a>
			<button class="navbar-toggler ml-auto mr-0" type="button"
				data-toggle="collapse" data-target="#navbarSupportedContent"
				aria-controls="navbarSupportedContent" aria-expanded="false"
				aria-label="Toggle navigation">
				<span class="navbar-toggler-icon"></span>
			</button>

			<div class="collapse navbar-collapse" id="navbarSupportedContent">
				<ul class="navbar-nav mx-auto">
					<li class="nav-item">
						<a class="nav-link active" href="#">首页
							<span class="sr-only">(current)</span>
						</a>
					</li>
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown"
							role="button" data-toggle="dropdown" aria-haspopup="true"
							aria-expanded="false">用户模块 </a>
						<div class="dropdown-menu" aria-labelledby="navbarDropdown">
							<a class="dropdown-item" href="${rootPath }/back/AdminsBackServlet?method=adminsList">管理员列表</a>
							<a class="dropdown-item" href="${rootPath }/back/UsersBackServlet?method=usersList">用户列表</a>
							<a class="dropdown-item" href="${rootPath }/back/AdminsBackServlet?method=adminsList">博客列表</a>
						</div>
					</li>
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown"
							role="button" data-toggle="dropdown" aria-haspopup="true"
							aria-expanded="false">商品模块 </a>
						<div class="dropdown-menu" aria-labelledby="navbarDropdown">
							<a class="dropdown-item" href="${rootPath }/back/ProductBackServlet?method=cateList">分类列表</a>
							<a class="dropdown-item" href="${rootPath }/back/ProductBackServlet?method=productList">商品列表</a>
							<a class="dropdown-item" href="${rootPath }/back/OrdersBackServlet?method=ordersList">订单列表</a>
						</div>
					</li>
				</ul>
				<ul class="navbar-nav">
					<li class="nav-item">
						<a class="nav-link d-flex" href="${rootPath }/back/AdminsBackServlet?method=logout" onclick="return confirm('您确定要退出系统吗？');">
							<i class="far fa-user mr-2 tm-logout-icon"></i> <span>退出</span>
						</a>
					</li>
				</ul>
			</div>
		</nav>
	</div>
</div>